package com.example.trb.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class UpdatePasswordVO {
    @NotNull
    private Integer userId;

    @Length(min = 6, max = 12)
    @NotBlank(message = "密码不能为空")
    private String originPassword;

    @Length(min = 6, max = 12)
    @NotBlank(message = "密码不能为空")
    private String newPassword;
}
